import {
    Author
} from './topics';

export interface RecentData {
    id: string,
    title: string,
    author: Author,
    last_reply_at: Date
}

export interface Profile {
    avatar_url: string,
    create_at: string,
    githubUsername: string,
    loginname: string,
    recent_replies: Array<RecentData>,
    recent_topics: Array<RecentData>,
    score: number
}

export interface UserStateContent {
    [propName: string]: Profile;
}

export interface LoginUser {
    token:string,
    loginname:string,
    avatar_url:string
}

export interface UserState {
    profile: UserStateContent,
    loginUser:LoginUser
}

